﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001475 RID: 5237
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrialActivityInfo : IMessage<TrialActivityInfo>, IMessage, IEquatable<TrialActivityInfo>, IDeepCloneable<TrialActivityInfo>, IBufferMessage
	{
		// Token: 0x17004204 RID: 16900
		// (get) Token: 0x0600EA62 RID: 60002 RVA: 0x00272DD8 File Offset: 0x00270FD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrialActivityInfo> Parser
		{
			get
			{
				return TrialActivityInfo._parser;
			}
		}

		// Token: 0x17004205 RID: 16901
		// (get) Token: 0x0600EA63 RID: 60003 RVA: 0x00272DDF File Offset: 0x00270FDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrialActivityInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004206 RID: 16902
		// (get) Token: 0x0600EA64 RID: 60004 RVA: 0x00272DF1 File Offset: 0x00270FF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrialActivityInfo.Descriptor;
			}
		}

		// Token: 0x0600EA65 RID: 60005 RVA: 0x00272DF8 File Offset: 0x00270FF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrialActivityInfo()
		{
		}

		// Token: 0x0600EA66 RID: 60006 RVA: 0x00272E00 File Offset: 0x00271000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrialActivityInfo(TrialActivityInfo other) : this()
		{
			this.stageId_ = other.stageId_;
			this.takenReward_ = other.takenReward_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EA67 RID: 60007 RVA: 0x00272E31 File Offset: 0x00271031
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrialActivityInfo Clone()
		{
			return new TrialActivityInfo(this);
		}

		// Token: 0x17004207 RID: 16903
		// (get) Token: 0x0600EA68 RID: 60008 RVA: 0x00272E39 File Offset: 0x00271039
		// (set) Token: 0x0600EA69 RID: 60009 RVA: 0x00272E41 File Offset: 0x00271041
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x17004208 RID: 16904
		// (get) Token: 0x0600EA6A RID: 60010 RVA: 0x00272E4A File Offset: 0x0027104A
		// (set) Token: 0x0600EA6B RID: 60011 RVA: 0x00272E52 File Offset: 0x00271052
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool TakenReward
		{
			get
			{
				return this.takenReward_;
			}
			set
			{
				this.takenReward_ = value;
			}
		}

		// Token: 0x0600EA6C RID: 60012 RVA: 0x00272E5B File Offset: 0x0027105B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrialActivityInfo);
		}

		// Token: 0x0600EA6D RID: 60013 RVA: 0x00272E69 File Offset: 0x00271069
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrialActivityInfo other)
		{
			return other != null && (other == this || (this.StageId == other.StageId && this.TakenReward == other.TakenReward && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EA6E RID: 60014 RVA: 0x00272EA8 File Offset: 0x002710A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			if (this.TakenReward)
			{
				num ^= this.TakenReward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EA6F RID: 60015 RVA: 0x00272F00 File Offset: 0x00271100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EA70 RID: 60016 RVA: 0x00272F08 File Offset: 0x00271108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EA71 RID: 60017 RVA: 0x00272F14 File Offset: 0x00271114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.StageId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.StageId);
			}
			if (this.TakenReward)
			{
				output.WriteRawTag(104);
				output.WriteBool(this.TakenReward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EA72 RID: 60018 RVA: 0x00272F70 File Offset: 0x00271170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			if (this.TakenReward)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EA73 RID: 60019 RVA: 0x00272FBC File Offset: 0x002711BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrialActivityInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			if (other.TakenReward)
			{
				this.TakenReward = other.TakenReward;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EA74 RID: 60020 RVA: 0x0027300C File Offset: 0x0027120C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EA75 RID: 60021 RVA: 0x00273018 File Offset: 0x00271218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TakenReward = input.ReadBool();
					}
				}
				else
				{
					this.StageId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005CD6 RID: 23766
		private static readonly MessageParser<TrialActivityInfo> _parser = new MessageParser<TrialActivityInfo>(() => new TrialActivityInfo());

		// Token: 0x04005CD7 RID: 23767
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005CD8 RID: 23768
		public const int StageIdFieldNumber = 2;

		// Token: 0x04005CD9 RID: 23769
		private uint stageId_;

		// Token: 0x04005CDA RID: 23770
		public const int TakenRewardFieldNumber = 13;

		// Token: 0x04005CDB RID: 23771
		private bool takenReward_;
	}
}
